#include<stdio.h>
void main()
{
	int s[][3]={1,3,5,7,2,4,6,8,9},i,j,s1=0,s2=0;
	for(i=0;i<3;i++)
		for(j=0;j<3;j++)
		{
			if(i==j)s1+=s[i][j];
			if(i+j==2)s2+=s[i][j];
		}
	printf("%d\t%d\n",s1,s2);
 } 
